-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(FM-7602) Implement Resource API transports for bolt and ACE #73
Conversation
Codecov Report
@@ Coverage Diff @@
## master #73 +/- ##
==========================================
+ Coverage 98.98% 99.02% +0.03%
==========================================
Files 36 39 +3
Lines 888 919 +31
==========================================
+ Hits 879 910 +31
Misses 9 9
Continue to review full report at Codecov.
|
3309421
to
645f02c
Compare
this is now starting to look like something. can still be cleaned up, but at least is passing tests. |
Closing to clean up stuck PR test statusses from travis |
28c80b1
to
a18bb23
Compare
Gemfile
Outdated
gem "puppet-module-posix-default-r#{minor_version}", require: false, platforms: [:ruby] | ||
gem "puppet-module-posix-dev-r#{minor_version}", require: false, platforms: [:ruby] | ||
gem "puppet-module-win-default-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw] | ||
gem "puppet-module-win-dev-r#{minor_version}", require: false, platforms: [:mswin, :mingw, :x64_mingw] | ||
gem "webmock", require: false | ||
gem "builder", '~> 3.2.2', require: false | ||
gem "puppet-strings", require: false, git: 'https://github.com/puppetlabs/puppet-strings.git', ref: 'master' | ||
gem "puppet-resource_api", require: false, git: 'https://github.com/puppetlabs/puppet-resource_api.git', ref: 'master' | ||
gem "puppet-resource_api", require: false, git: 'https://github.com/puppetlabs/puppet-resource_api.git', ref: 'transport' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be changed to master when RSAPI is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has been release, we can switch back to the gem?
Apologies for the force push. As per discussion with @da-ar , changed the APIKey task JSON rather than working around the existing. Much cleaner. |
906f991
to
2ed1024
Compare
With the task_helper the PANOS module will complain about the following. We will need to make provisions within RSAPI to handle these values correctly during validation. stderr: Warning: The connection info provided does not match the Transport Schema for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main problem I see is that the task_helper
still relies on pluginsync.
930bad6
to
9d8d3b7
Compare
Experimental implementation of a `panos` transport based on the new in development transport support. This still needs some cleanups before it can be merged. Follow the TODO breadcrumbs.
417d376
to
b36aab0
Compare
@DavidS latest changes here will not pass CI until puppetlabs/puppet-resource_api#161 goes into master |
The files created by basic_spec.rb need to be cleaned up after each run, so they do not get re-used on the next acceptance test run.
@DavidS updates look good to me, but Rubocop is unhappy |
Changed task_helper around to get shipped with the task files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A manual run of the acceptance tests passed on my machine, and bolt was able to run a task from the CLI:
david@davids:~/git/puppetlabs-panos$ bundle exec bolt --inventoryfile ./inventory.yaml --transport remote -n x --modulepath ./spec/fixtures/modules/ task run panos::apikey
Started on jryp6xj57njqg6d.delivery.puppetlabs.net...
Finished on jryp6xj57njqg6d.delivery.puppetlabs.net:
{
"apikey": "LUFRPT14MW5xOEo1R09KVlBZNnpnemh0VHRBOWl6TGM9bXcwM3JHUGVhRlNiY0dCR0srNERUQT09"
}
Successful on 1 node: jryp6xj57njqg6d.delivery.puppetlabs.net
Ran on 1 node in 2.82 seconds
david@davids:~/git/puppetlabs-panos$
No description provided.